#列表的遍历
list1 = [1,2,3,4,5,6,7,8,9,10]
list2 = []
for x in list1:
    if x % 2 == 0 :
        list2.append(x)
list1.extend(list2)
print(list1)